package com.community.windy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;

import javax.annotation.PostConstruct;


@SpringBootApplication
public class WindyCommunityApplication {

//    @PostConstruct
//    public void init(){
//        //解决Netty启动冲突问题
//        //see Nett4Utils.setAvailableProcessors();
//        System.setProperty("es.set.netty.runtime.available.processors", "false");
//    }

    public static void main(String[] args) {
        SpringApplication.run(WindyCommunityApplication.class, args);
    }

}
